/*
* Powered By [choudou5]
* Web Site: http://www.hsolr.com
* License：MIT
* Since 2018 - 2020
*/
package com.choudou5.solr.bean.client;


import com.choudou5.solr.framework.bean.BaseBean;
import com.choudou5.solr.framework.util.UserUtil;

import java.util.Date;

/**
 * @name 客户端授权
 * @author choudou5
 * @date：2018-08-06
 */
public class SolrClientAuth extends BaseBean<Integer> {

    /**
     * id ID
     */
    private Integer id;
    /**
     * app_name 应用名
     */
    private String appName;
    /**
     * app_key 应用Key
     */
    private String appKey;
    /**
     * white_ip 白名单IP
     */
    private String whiteIp;
    /**
     * auth_api 授权api
     */
    private String authApi;
    /**
     * create_by 创建者
     */
    private Integer createBy;
    /**
     * create_time 创建时间
     */
    private java.util.Date createTime;
    /**
     * update_by 更新者
     */
    private Integer updateBy;
    /**
     * update_time 更新时间
     */
    private java.util.Date updateTime;
    /**
     * status 状态: 0=禁用，1=正常
     */
    private String status;
    /**
     * remarks 备注
     */
    private String remarks;

	public SolrClientAuth(){
	}

	public SolrClientAuth(Integer id){
			setId(id);
	}

    public SolrClientAuth(Integer id, String appKey, String whiteIp, String authApi, String remarks, String status) {
        this.id = id;
        this.appKey = appKey;
        this.whiteIp = whiteIp;
        this.authApi = authApi;
        this.remarks = remarks;
        this.status = status;
        this.updateBy = UserUtil.getUserId();
        this.updateTime = new Date();
    }

    public Integer getId() {
        return this.id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getAppName() {
        return this.appName;
    }
    public void setAppName(String appName) {
        this.appName = appName;
    }
    public String getAppKey() {
        return this.appKey;
    }
    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }
    public String getWhiteIp() {
        return this.whiteIp;
    }
    public void setWhiteIp(String whiteIp) {
        this.whiteIp = whiteIp;
    }
    public String getAuthApi() {
        return this.authApi;
    }
    public void setAuthApi(String authApi) {
        this.authApi = authApi;
    }
    public Integer getCreateBy() {
        return this.createBy;
    }
    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }
    public java.util.Date getCreateTime() {
        return this.createTime;
    }
    public void setCreateTime(java.util.Date createTime) {
        this.createTime = createTime;
    }
    public Integer getUpdateBy() {
        return this.updateBy;
    }
    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }
    public java.util.Date getUpdateTime() {
        return this.updateTime;
    }
    public void setUpdateTime(java.util.Date updateTime) {
        this.updateTime = updateTime;
    }
    public String getStatus() {
        return this.status;
    }
    public void setStatus(String status) {
        this.status = status;
    }
    public String getRemarks() {
        return this.remarks;
    }
    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
